package cn.edu.scau.cmi.wujiaxian.comprehension.client;

import java.net.URL;
import java.util.Arrays;
import java.util.ResourceBundle;

import cn.edu.scau.cmi.wujiaxian.client.AbstractFactoryClient;
import cn.edu.scau.cmi.wujiaxian.client.AdapterClient;
import cn.edu.scau.cmi.wujiaxian.client.ConsistentCompositeClient;
import cn.edu.scau.cmi.wujiaxian.client.FactoryClient;
import cn.edu.scau.cmi.wujiaxian.client.HibernateJavafxClient;
import cn.edu.scau.cmi.wujiaxian.client.InterProgrammingClient;
import cn.edu.scau.cmi.wujiaxian.client.MultipleClient;
import cn.edu.scau.cmi.wujiaxian.client.SafeCompositeClient;
import cn.edu.scau.cmi.wujiaxian.client.SimpleFactoryMethodClient;
import cn.edu.scau.cmi.wujiaxian.client.SingletonClient;
import cn.edu.scau.cmi.wujiaxian.client.SpringGraduationClient;
import javafx.event.ActionEvent;
import javafx.fxml.Initializable;

public class Comprehensive implements Initializable {

	@Override
	public void initialize(URL location, ResourceBundle resources) {
	}

	public void onInterface(ActionEvent actionEvent) throws Exception {
		InterProgrammingClient.main(null);
	}
	public void onSingleton(ActionEvent actionEvent) throws Exception {
		SingletonClient.main(null);
	}
	public void onMultiple(ActionEvent actionEvent) throws Exception {
		MultipleClient.main(null);
	}
	public void onSimpleFactory(ActionEvent actionEvent) throws Exception {
		SimpleFactoryMethodClient.main(null);
	}
	public void onFactory(ActionEvent actionEvent) throws Exception {
		FactoryClient.main(null);
	}
	public void onAbstractFactory(ActionEvent actionEvent) throws Exception {
		AbstractFactoryClient.main(null);
	}
	public void onClassAdapeter(ActionEvent actionEvent) throws Exception {
		AdapterClient.main(null);
	}
	public void onObjectAdapter(ActionEvent actionEvent) throws Exception {
		AdapterClient.main(null);
	}
	public void onSafeComposite(ActionEvent actionEvent) throws Exception {
		SafeCompositeClient.main(null);
	}
	public void onConsistentComposite(ActionEvent actionEvent) throws Exception {
		ConsistentCompositeClient.main(null);
	}
	public void onComprehensive(ActionEvent actionEvent) throws Exception {
		HibernateJavafxClient.main(null);
	}
}
